function changeDataType(url) {
  return fetch(url)
    .then((response) => {
      return response.blob()
    })
    .then((blob) => {
      return URL.createObjectURL(blob)
    })
}
export const funDownload = async (url, filename) => {
  const a = document.createElement('a')
  a.href = await changeDataType(url)
  a.download = filename
  document.body.appendChild(a)
  a.click()
  document.body.removeChild(a)
}
